package com.twentytwok.hospitalsystem22K.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.regex.Pattern;

/**
 * @program: hospital
 * @description: 药物表
 * @author: Mr.Wu
 * @create: 2021-11-08 19:57
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Drug {
    // 编号
    private Integer id;
    // 名称
    private String name;
    // 药物编号
    private Integer number;
    // 功效
    private String efficacy;
    // 库存数量
    private Integer inventory;
    // 批发价
    private Integer wholesalePrice;
    // 售价
    private Integer price;
    // 生产厂家
    private String manufacturer;
    // 生产日期
    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date productionDate;
    // 保质期
    private String qualityDate;
    // 是否删除
    private Boolean delete;
    // 图片
    private String picture;
}